<?php

namespace App\Models;

class WebConfig extends Model
{
    protected $table = 'yf_web_config';
    protected $primaryKey = 'config_key';
    public $timestamps = false;
    protected $guarded = ['config_key'];

    public static function value(string $configKey) : string
    {
        return self::whereConfigKey($configKey)->value('config_value');
    }
}
